-- GENERATED SPELL FOR [Major Pakkon] --


function spell0_15388(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15388', 589, 1)
end

function spell1_15388(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(24317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15388', 20299, 1)
end

function spell2_15388(pUnit, Event) --@Sweeping Slam,Self--
pUnit:FullCastSpellOnTarget(25322,pUnit)
pUnit:RegisterEvent('Sorts_15388', 563, 1)
end

function Sorts_15388(pUnit, Event)
local choix_sorts_15388 = math.random(0, 2)
if choix_sorts_15388 == 0 then
pUnit:RegisterEvent('spell0_15388', 1, 1)
end
if choix_sorts_15388 == 1 then
pUnit:RegisterEvent('spell1_15388', 1, 1)
end
if choix_sorts_15388 == 2 then
pUnit:RegisterEvent('spell2_15388', 1, 1)
end
end

function mob15388_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15388', math.random(1500, 3000), 1)
end

function mob15388_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15388_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15388_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15388, 1, 'mob15388_Action')
RegisterUnitEvent(15388, 2, 'mob15388_Leave')
RegisterUnitEvent(15388, 3, 'mob15388_Kill')
RegisterUnitEvent(15388, 4, 'mob15388_Die')
